Skip to content

Service worker activation issue#33

Draft
ShoeBoom wants to merge 2 commits intomainfrom
cursor/service-worker-activation-issue-abab
Draft

Service worker activation issue#33
ShoeBoom wants to merge 2 commits intomainfrom
cursor/service-worker-activation-issue-abab

Conversation

@ShoeBoom
Copy link
Owner

Fix bang redirects on cold service worker startup.

On a cold service worker start, the bangs_active state was read as false before storage hydration completed, causing the first bang request to be ignored. This PR updates the background listener to await hydrated storage values for active, quickBangs, and aliases before processing requests, ensuring bangs work immediately upon worker activation.


Open in Web Open in Cursor 

Co-authored-by: ShoeBoom <ShoeBoom@users.noreply.github.com>
@cursor
Copy link

cursor bot commented Feb 28, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Feb 28, 2026

Deploying searchtuner with  Cloudflare Pages  Cloudflare Pages

Latest commit: d3651bc
Status: ✅  Deploy successful!
Preview URL: https://a5245049.searchtuner.pages.dev
Branch Preview URL: https://cursor-service-worker-activa.searchtuner.pages.dev

View logs

Co-authored-by: ShoeBoom <ShoeBoom@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants